package com.twoGroup.boot.pojo;

public class ShoppingCard {
    private Integer shoppingCardId;
    private Integer userId;
    private Integer goodsId;
    private Integer goodsCount = 1;

    public ShoppingCard() {
    }

    public ShoppingCard(Integer shoppingCardId, Integer userId, Integer goodsId, Integer goodsCount) {
        this.shoppingCardId = shoppingCardId;
        this.userId = userId;
        this.goodsId = goodsId;
        this.goodsCount = goodsCount;
    }

    public Integer getShoppingCardId() {
        return shoppingCardId;
    }

    public void setShoppingCardId(Integer shoppingCardId) {
        this.shoppingCardId = shoppingCardId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(Integer goodsCount) {
        this.goodsCount = goodsCount;
    }

    @Override
    public String toString() {
        return "ShoppingCard{" +
                "shoppingCardId=" + shoppingCardId +
                ", userId=" + userId +
                ", goodsId=" + goodsId +
                ", goodsCount=" + goodsCount +
                '}';
    }
}
